import service from '@/utils/request'
// @Tags LsSeckill
// @Summary 创建秒杀表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsSeckill true "创建秒杀表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /lsSeckill/createLsSeckill [post]
export const createLsSeckill = (data) => {
  return service({
    url: '/lsSeckill/createLsSeckill',
    method: 'post',
    data
  })
}

// @Tags LsSeckill
// @Summary 删除秒杀表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsSeckill true "删除秒杀表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lsSeckill/deleteLsSeckill [delete]
export const deleteLsSeckill = (params) => {
  return service({
    url: '/lsSeckill/deleteLsSeckill',
    method: 'delete',
    params
  })
}

// @Tags LsSeckill
// @Summary 批量删除秒杀表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除秒杀表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lsSeckill/deleteLsSeckill [delete]
export const deleteLsSeckillByIds = (params) => {
  return service({
    url: '/lsSeckill/deleteLsSeckillByIds',
    method: 'delete',
    params
  })
}

// @Tags LsSeckill
// @Summary 更新秒杀表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsSeckill true "更新秒杀表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /lsSeckill/updateLsSeckill [put]
export const updateLsSeckill = (data) => {
  return service({
    url: '/lsSeckill/updateLsSeckill',
    method: 'put',
    data
  })
}

// @Tags LsSeckill
// @Summary 用id查询秒杀表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.LsSeckill true "用id查询秒杀表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /lsSeckill/findLsSeckill [get]
export const findLsSeckill = (params) => {
  return service({
    url: '/lsSeckill/findLsSeckill',
    method: 'get',
    params
  })
}

// @Tags LsSeckill
// @Summary 分页获取秒杀表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取秒杀表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /lsSeckill/getLsSeckillList [get]
export const getLsSeckillList = (params) => {
  return service({
    url: '/lsSeckill/getLsSeckillList',
    method: 'get',
    params
  })
}

// @Tags LsSeckill
// @Summary 不需要鉴权的秒杀表接口
// @Accept application/json
// @Produce application/json
// @Param data query shopReq.LsSeckillSearch true "分页获取秒杀表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /lsSeckill/getLsSeckillPublic [get]
export const getLsSeckillPublic = () => {
  return service({
    url: '/lsSeckill/getLsSeckillPublic',
    method: 'get',
  })
}
